import { http } from './http'


// export function get_platform_trade1<T>(data: T): any {
//     return http({
//         // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
//         url: '/get_platform_trade',
//         method: 'post',
//         data
//     })
// }

// 返回用户交易信息
export function get_user_trade(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_user_trade',
        method: 'get',
        params
    })
}


// 返回平台交易统计
export function get_platform_trade(params: any): Object {
    return http({
        url: '/get_platform_trade',
        method: 'get',
        params
    })
}
// 返回用户奖励信息
export function get_user_reward(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_user_reward',
        method: 'get',
        params
    })
}


// 用于获取用户某币种奖励的数量和签名
export function user_claim_reward(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_claim_reward',
        method: 'get',
        params
    })
}

// 用于获取用户某币种奖励的数量和签名
export function get_user_reward_records(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_user_reward_records',
        method: 'get',
        params
    })
}

// 用于获取用户某币种奖励的数量和签名
export function user_order_list(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_order_list',
        method: 'get',
        params
    })
}

// 用于获取用户某币种奖励的数量和签名
export function get_user_daily_reward(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_user_daily_reward',
        method: 'get',
        params
    })
}

// 用于获取用户某币种奖励的数量和签名
export function user_login(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_login',
        method: 'get',
        params
    })
}

export function send_verify_code(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/send_verify_code',
        method: 'get',
        params
    })
}

export function user_register(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_register',
        method: 'get',
        params
    })
}

export function chainsall(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/chains/all/',
        method: 'get',
        params
    })
}

export function user_wallet_list(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_wallet_list',
        method: 'get',
        params
    })
}

export function user_wallet_info(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_wallet_info',
        method: 'get',
        params
    })
}

export function user_mint_record(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/nft/user_mint_record',
        method: 'get',
        params
    })
}

export function get_user_nft_staking_record(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_user_nft_staking_record',
        method: 'get',
        params
    })
}


export function user_set_password(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_set_password',
        method: 'get',
        params
    })
}


export function user_export_privkey(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_export_privkey',
        method: 'get',
        params
    })
}

export function user_submit_order<T>(data: T): any {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_submit_order',
        method: 'post',
        data
    })
}

export function user_query_token(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_query_token',
        method: 'get',
        params
    })
}

export function user_import_token(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_import_token',
        method: 'get',
        params
    })
}

export function token_usd_price(params: any): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/chains/token_usd_price',
        method: 'get',
        params
    })
}

export function get_token_list<T>(params: T): any {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/chains/get_token_list',
        method: 'get',
        params
    })
}

export function get_balance_of<T>(params: T): any {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/chains/get_balance_of',
        method: 'get',
        params
    })
}

export function transfer_gas_fee<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/chains/transfer_gas_fee',
        method: 'get',
        params
    })
}

export function user_new_wallet<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_new_wallet',
        method: 'get',
        params
    })
}

export function user_settings<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_settings',
        method: 'get',
        params
    })
}

export function user_config_set<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_config_set',
        method: 'get',
        params
    })
}

export function get_user_vip<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_user_vip',
        method: 'get',
        params
    })
}

export function user_bind_invitation<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_bind_invitation',
        method: 'get',
        params
    })
}

export function user_remove_token<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_remove_token',
        method: 'get',
        params
    })
}

export function check_nft_ticket<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/nft/check_nft_ticket',
        method: 'get',
        params
    })
}


export function user_mint_nft<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/nft/user_mint_nft',
        method: 'get',
        params
    })
}

export function get_vip_payments<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/get_vip_payments',
        method: 'get',
        params
    })
}


export function user_buy_vip<T>(data: T): any {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_buy_vip',
        method: 'post',
        data
    })
}

export function user_import_wallet<T>(params: T): Object {
    return http({
        // url: 'http://192.168.1.152:8080/api/v1/ai/chat',
        url: '/user_import_wallet',
        method: 'get',
        params
    })
}


